/**
 * 自定义脚本
 * @param {*} params
 * @returns
 */
export default function hasPermission(params) {
  let tag = false; // 标识是否拥有权限
  let codeList = JSON.parse(sessionStorage.getItem("codeList"));
  for (let i = 0; i < codeList.length; i++) {
    if (codeList[i] == params) {
      tag = true;
      break;
    }
  }
  return tag;
}
